export default {
  data () {
    return {
      labelSelect: [{
        value: '1',
        label: '姓名'
      }, {
        value: '2',
        label: '身份证'
      }, {
        value: '3',
        label: '手机号'
      }],
      labelValue: '1',
      placeholder: '请输入姓名',
      inputValue: ''
    }
  },
  methods: {
    handleType: function (value) {
      this.searchKey.customername = ''
      this.searchKey.idnumber = ''
      this.searchKey.mobileno = ''
      if (value === '1') {
        this.placeholder = '请输入姓名'
        this.inputValue = ''
      } else if (value === '2') {
        this.placeholder = '请输入身份证'
        this.inputValue = ''
      } else if (value === '3') {
        this.placeholder = '请输入手机号'
        this.inputValue = ''
      }
    }
  }
}
